/* 
 * File:   PJLinkInput.h
 * Author: longtran
 *
 * Created on March 20, 2011, 2:14 AM
 */

#ifndef PJLINKV1CODE_H
#define	PJLINKV1CODE_H

#include <QtCore/QString>

namespace Projector
{

enum CodeType
{
    CODETYPE_Unknown = 0,
    CODETYPE_Input,
    CODETYPE_InputResponse,
    CODETYPE_Power,
    CODETYPE_PowerResponse

};

class PJLinkV1Code {


QString     mName;
int         mCode;
CodeType    mCodeType;

PJLinkV1Code();

public:

    PJLinkV1Code(QString& name, int code, CodeType codeType);
    virtual ~PJLinkV1Code();

    QString GetName() const;
    void SetName(QString& name);
    int GetCode() const;
    CodeType GetCodeType() const;


    bool operator< (const PJLinkV1Code& compare);

};
}
#endif	/* PJLINKV1CODE_H */

